package com.treasure.infrastructure.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author sunhongmin
 * @since 2023-11-17
 */
@TableName("knowledge_document")
public class KnowledgeDocument implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 企业ID
     */
    private String corpId;

    /**
     * 知识库ID
     */
    private Integer knowledgeId;

    /**
     * 文档名称
     */
    private String documentName;

    /**
     * 文档类型
     */
    private String documentSuffix;

    /**
     * 文档大小
     */
    private Integer documentSize;

    /**
     * 更新时间
     */
    private LocalDateTime createTime;

    /**
     * 所有者
     */
    private String creatorId;

    /**
     * 训练状态（原有字段废弃）初始化-INIT_TRAINING、训练进行中-IN_TRAINING、训练成功-SUCCESS_TRAINING 、训练失败-FAIL_TRAINING
     */
    private String trainingStat;

    /**
     * 训练描述信息
     */
    private String trainingMsg;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCorpId() {
        return corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

    public Integer getKnowledgeId() {
        return knowledgeId;
    }

    public void setKnowledgeId(Integer knowledgeId) {
        this.knowledgeId = knowledgeId;
    }

    public String getDocumentName() {
        return documentName;
    }

    public void setDocumentName(String documentName) {
        this.documentName = documentName;
    }

    public String getDocumentSuffix() {
        return documentSuffix;
    }

    public void setDocumentSuffix(String documentSuffix) {
        this.documentSuffix = documentSuffix;
    }

    public Integer getDocumentSize() {
        return documentSize;
    }

    public void setDocumentSize(Integer documentSize) {
        this.documentSize = documentSize;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public String getTrainingStat() {
        return trainingStat;
    }

    public void setTrainingStat(String trainingStat) {
        this.trainingStat = trainingStat;
    }

    public String getTrainingMsg() {
        return trainingMsg;
    }

    public void setTrainingMsg(String trainingMsg) {
        this.trainingMsg = trainingMsg;
    }

    @Override
    public String toString() {
        return "KnowledgeDocument{" +
        "id = " + id +
        ", corpId = " + corpId +
        ", knowledgeId = " + knowledgeId +
        ", documentName = " + documentName +
        ", documentSuffix = " + documentSuffix +
        ", documentSize = " + documentSize +
        ", createTime = " + createTime +
        ", creatorId = " + creatorId +
        ", trainingStat = " + trainingStat +
        ", trainingMsg = " + trainingMsg +
        "}";
    }
}
